function heavyComputer(n) {
	var count = 0;
	var i,
		j;
	for(i=n;i>0;i--){
		for(j=n;j>0;j--){
			count++;
		}
	}
	console.log(count);
}

var t = new Date();
setTimeout(function(){
	console.log(new Date()-t);
})
heavyComputer(1000);
